using UnityEngine;
using UnityEngine.Networking.Match;
using UnityEngine.UI;

public class GUIGameRoom : MonoBehaviour
{
	public Text RoomName;

	public MatchInfoSnapshot Match;

	private void Start()
	{
	}

	public void JoinRoom()
	{
		if ((bool)UnitZ.gameNetwork)
		{
			UnitZ.gameNetwork.MatchSelect(Match);
			if (MainMenuManager.menu != null)
			{
				MainMenuManager.menu.EnterGame(UnitZGameType.Connect);
			}
		}
	}
}
